package com.kaishengit.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.IssuesDao;
import com.kaishengit.pojo.Issues;

@Service
@Transactional
public class IssuesService {

	@Resource
	private IssuesDao issuesDao;
	
	public void save(Issues issues){
		issuesDao.save(issues);
	}
	
	public void deleteById(int id){
		issuesDao.delete(id);
	}
	
	public List<Issues> findListByProperty(String propertyName,Object value){
		return issuesDao.findListByProperty(propertyName, value);
	}

	public Issues findById(Integer id) {
		return issuesDao.findById(id);
	}
}
